package com.lych.dubbo.api;

import com.lych.model.enums.CommentType;
import com.lych.model.mongo.Movement;
import com.lych.model.vo.PageResult;

import java.util.List;

public interface MovementApi {
    //动态-发布
    Movement  movements(Movement movement);

    //我的动态
    PageResult all(Long userId, Integer page, Integer pagesize);

    //查询好友动态
    List<Movement> findFriendMovements(Long userId, Integer page, Integer pagesize);

    //随机获取动态详细信息
    List<Movement> randomMovements(Integer pagesize);

    //根据pid查询对应动态信息
    List<Movement> findByPids(List<Long> pids);

    //根据id查询动态
    Movement findById(String movementId);

    //根据id查询动态
    List<Movement> findByUserId(Integer page, Integer pagesize, Long uid, Integer state);
}
